<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/11 011
 * Time: 9:35
 */
namespace App\Pizza;

class NYPizzaStore extends PizzaStore
{
    public function createPizza($item)
    {
        // TODO: Implement createPizza() method.
        if($item == "cheese") {
            return new NYStyleCheesePizza();
        } else if($item == "veggie") {
            return new NYStyleVeggiePizza();
        } else {
            return null;
        }
    }
}